import axios from 'axios'
export const getIPLogin = () => axios.get('/ipLogin') // 判断是否在ip内访问
export const getSelectDeptList = () => axios.get('/selectDeptList') // 判断是否在ip内访问
export const postIPUserRegister = params => axios.post('/register', params) // 用户注册
export const postLogin = params => axios.post('/login', params) // 帐号登录
export const getInfo = () => axios.get('/getInfo') // 获取用户信息
export const selectUserStudyStatistics = () => axios.get('/web/statistics/selectUserStudyStatistics') // 获取用户学习统计
export const selectUserViewList = params => axios.get(`/web/userview/selectUserViewList?pageNum=${params.pageNum}&pageSize=${params.pageSize}`) // 获取用户观看记录
export const getUserCollectList = params => axios.get(`/web/usercollect/getUserCollectList?pageNum=${params.pageNum}&pageSize=${params.pageSize}`) // 获取用户收藏记录
export const selectAnswerRecordList = params => axios.get(`/web/useranswer/selectAnswerRecordList?pageNum=${params.pageNum}&pageSize=${params.pageSize}`) // 获取用户答题记录
